import request from '@/utils/request'

// 查询自动单格列表
export function listAutoCell(query) {
  return request({
    url: '/binance/autoCell/list',
    method: 'get',
    params: query
  })
}

// 查询自动单格详细
export function getAutoCell(code) {
  return request({
    url: '/binance/autoCell/' + code,
    method: 'get'
  })
}

// 新增自动单格
export function addAutoCell(data) {
  return request({
    url: '/binance/autoCell',
    method: 'post',
    data: data
  })
}

// 修改自动单格
export function updateAutoCell(data) {
  return request({
    url: '/binance/autoCell',
    method: 'put',
    data: data
  })
}

// 删除自动单格
export function delAutoCell(code) {
  return request({
    url: '/binance/autoCell/' + code,
    method: 'delete'
  })
}
